package com.dubito.concurrency.example.publish;

import com.dubito.concurrency.annotation.NoThreadSafe;
import lombok.extern.slf4j.Slf4j;

/**
 * @author liliang
 * @description:
 * @date 2018/6/24.
 */
@Slf4j
@NoThreadSafe
public class Escape {

    private int thisCanBeEscape = 0;

    public Escape() {
        new InnerClass();
    }

    private class InnerClass {

        public InnerClass() {
            log.info("{}", Escape.this.thisCanBeEscape);
        }
    }

    public static void main(String[] args) {
       new Escape();

    }
}
